import { SideMenuItem } from '../lib/defs/comm'

const sideMenuInfo:Array<SideMenuItem> = [
  {
    id: 'sidemenu-home',
    icon: 'home',
    label: '主页',
    to: '/'
  },
  {
    id: 'sidemenu-folder-basic',
    icon: 'ion-md-list-box',
    label: '基础资料',
    children: [
      {
        id: 'sidemenu-mf',
        icon: 'business',
        label: '客商管理',
        to: '/comm/basic/mf',
        needRight: 'Comm.Mf.View'
      },
      {
        id: 'sidemenu-company',
        icon: 'emoji_transportation',
        label: '公司管理',
        to: '/comm/basic/company',
        needRight: 'Comm.Company.View'
      },
      {
        id: 'sidemenu-exchange',
        icon: 'monetization_on',
        label: '汇率管理',
        to: '/comm/basic/exchange',
        needRight: 'Comm.Exchange.View'
      }
    ]
  },
  {
    id: 'sidemenu-folder-my',
    icon: 'account_box',
    label: '我的功能',
    children: [
      {
        id: 'sidemenu-myprofile',
        icon: 'account_circle',
        label: '我的资料',
        to: '/comm/my/my-profile'
      },
      {
        id: 'sidemenu-message',
        icon: 'mail_outline',
        label: '我的消息',
        to: '/comm/my/message'
      }
    ]
  },
  {
    id: 'sidemenu-folder-cfg',
    icon: 'settings_applications',
    label: '系统设置',
    children: [
      {
        id: 'sidemenu-user',
        icon: 'supervised_user_circle',
        label: '用户管理',
        to: '/comm/cfg/user',
        needRight: 'Comm.UserMgr.View'
      },
      {
        id: 'sidemenu-roleright',
        icon: 'perm_identity',
        label: '角色权限',
        to: '/comm/cfg/roleright',
        needRight: 'Comm.RoleRight.View'
      },
      {
        id: 'sidemenu-codelist',
        icon: 'list',
        label: '代码设置',
        to: '/comm/cfg/code',
        needRight: 'Comm.Code.View'
      },
      {
        id: 'sidemenu-fms',
        icon: 'storage',
        label: '文件管理',
        to: '/comm/cfg/fms',
        needRight: 'Comm.Fms.Management'
      },
      {
        id: 'sidemenu-updatelog',
        icon: 'fas fa-angle-double-up',
        label: '更新日志',
        to: '/comm/cfg/updaterecord'
      },
      {
        id: 'sidemenu-about',
        icon: 'info',
        label: '关于',
        to: '/comm/cfg/about'
      }
    ]
  },
  {
    id: 'sidemenu-folder-demo',
    icon: 'eva-monitor',
    label: 'DEMO',
    children: [
      {
        id: 'sidemenu-demo-shoppingcart',
        icon: 'fas fa-hand-point-right',
        label: '购物车DEMO',
        to: '/demo/shoppingcartdemo'
      },
      {
        id: 'sidemenu-demo-simplefilterselect',
        icon: 'fas fa-hand-point-right',
        label: '简单过滤下拉',
        to: '/demo/simplefilterselect'
      },
      {
        id: 'sidemenu-demo-misc',
        icon: 'fas fa-hand-point-right',
        label: '杂项DEMO',
        to: '/demo/miscdemo'
      },
      {
        id: 'sidemenu-demo-focusnext',
        icon: 'fas fa-hand-point-right',
        label: '自动聚焦下一个DEMO',
        to: '/demo/focusnextdemo'
      },
      {
        id: 'sidemenu-demo-collectionval',
        icon: 'fas fa-hand-point-right',
        label: '集合验证DEMO',
        to: '/demo/collectionval'
      },
      {
        id: 'sidemenu-demo-datatable',
        icon: 'fas fa-hand-point-right',
        label: '数据表DEMO',
        to: '/demo/datatabledemo'
      },
      {
        id: 'sidemenu-demo-icons',
        icon: 'fas fa-hand-point-right',
        label: '图标示例库',
        to: '/demo/icons'
      },
      {
        id: 'sidemenu-demo-layout',
        icon: 'fas fa-hand-point-right',
        label: '布局',
        to: '/demo/layout'
      },
      {
        id: 'sidemenu-demo-color',
        icon: 'fas fa-hand-point-right',
        label: '颜色',
        to: '/demo/color'
      },
      {
        id: 'sidemenu-demo-text',
        icon: 'fas fa-hand-point-right',
        label: '文本',
        to: '/demo/text'
      },
      {
        id:'sidemenu-demo-wfrchart',
        icon: 'fas fa-hand-point-right',
        label: '工作流展示',
        to: '/demo/wfrchartdemo'
      },
      {
        id:'sidemenu-demo-timepick',
        icon: 'fas fa-hand-point-right',
        label: '时间选择demo',
        to: '/demo/timePickDemo'
      },
      {
        id: 'sidemenu-demo-qeditor',
        icon: 'fas fa-hand-point-right',
        label: '富文本编辑器demo',
        to: '/demo/qeditor'
      },
      {
        id: 'sidemenu-demo-rights',
        icon: 'fas fa-hand-point-right',
        label: '用户权限控制demo',
        to: '/demo/rightsdemo'
      },
      {
        id: 'sidemenu-demo-line-fps-helper',
        icon: 'fas fa-hand-point-right',
        label: '分页demo',
        to: '/demo/line-fps-helper-demo'
      },
      {
        id: 'sidemenu-href-demo',
        icon: 'fas fa-hand-point-right',
        label: '外链',
        to: '',
        href: 'https://www.shxipwy.com/#/login'
      },
      {
        id: 'sidemenu-demo-i18n-demo',
        icon: 'fas fa-hand-point-right',
        label: 'i18n demo',
        to: '/demo/i18ndemo'
      },
    ]
  }
]

export default sideMenuInfo
